package com.awesome.spring.sharding.controller;

import com.awesome.spring.sharding.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: awesome-spring
 * @description: 订单控制器类
 * @author: Alex Wu
 * @createDate: 2025-03-25 09:35
 **/

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @PostMapping("/submit")
    public Boolean submitOrder() {
        return orderService.insertOrder();
    }
}
